<!doctype html public "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
<html>
<head>
<title>
FlyUI Overview
</title>
<link rel ="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script>
function asd() {
	
		parent.document.title="flyui.js Overview";
	
}
</script>
</head>
<body bgcolor="white" onload="asd();">

<!-- ========== START OF NAVBAR ========== -->
<a name="navbar_top"><!-- --></a>
<table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td colspan=2 bgcolor="#EEEEFF" class="NavBarCell1">
<a name="navbar_top_firstrow"><!-- --></a>
<table border="0" cellpadding="0" cellspacing="3">
  <tr align="center" valign="top">
  
  
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="overview-summary.html"><font class="NavBarFont1"><b>Overview</b></font></a>&nbsp;</td>
  <td bgcolor="#FFFFFF" class="NavBarCell1Rev">	&nbsp;<font class="NavBarFont1Rev"><b>File</b></font>&nbsp;</td>
  

  <td bgcolor="#FFFFFF" class="NavBarCell1"> 	<font class="NavBarFont1">Class</font>&nbsp;</td>
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="overview-tree.html"><font class="NavBarFont1"><b>Tree</b></font></a>&nbsp;</td>
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="index-all.html"--><font class="NavBarFont1"><b>Index</b></font></a>&nbsp;</td>
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="help-doc.html"><font class="NavBarFont1"><b>Help</b></font></a>&nbsp;</td>
  </tr>
</table>
</td>
<td bgcolor="#EEEEFF" align="right" valign="top">
<em>
<b>FlyUI</b></em>
</td>
</tr>

<tr>
<td bgcolor="white" class="NavBarCell2"><font size="-2">
&nbsp;PREV&nbsp;
&nbsp;NEXT</font></td>
<td bgcolor="white" class="NavBarCell2"><font size="-2">
  <a href="index.html" target="_top"><b>FRAMES</b></a>  &nbsp;
&nbsp;<a href="overview-summary.html" target="_top"><b>NO FRAMES</b></a>
&nbsp;&nbsp;
<script>
  <!--
  if(window==top) {
    document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
  }
  //-->
</script>
<noscript>
<a href="allclasses-noframe.html" target=""><b>All Classes</b></a>
</noscript>
</font></td>
</tr>
</table>
<!-- =========== END OF NAVBAR =========== -->

<hr>
<center>
	
	   <h2>flyui.js</h2>
	
</center>

	


<h4>Summary</h4>
<p>
	
		This script sets up the flyui environment.
 <BR/><BR/><B>Version: </B>$Revision:538 $ on $Date: 2008-08-14 10:36:17 +0100 (Thu, 14 Aug 2008) $ by $Author: aliman $
 TODO license terms<BR/><BR/><B>Author:</B> <a href="http://purl.org/net/aliman">Alistair Miles</a>
 <BR/>
	
</p>

<hr>


    <table border="1" cellpadding="3" cellspacing="0" width="100%">
    <tr bgcolor="#CCCCFF" class="TableHeadingColor">
    <td colspan=2><font size="+2">
    
        <b>Class Summary</b>
    
    </font></td>
    </tr>
    
    <tr bgcolor="white" class="TableRowColor">
    <td width="15%"><b><a href="flyui.html">flyui</a></b></td>
    <td>The flyui global namespace.</td>
    </tr>
    
    <tr bgcolor="white" class="TableRowColor">
    <td width="15%"><b><a href="flyui/UnexpectedException.html">flyui.UnexpectedException</a></b></td>
    <td>Encapsulates an unexpected exception.</td>
    </tr>
    
    </table>
    <hr/> 


<!-- ========== METHOD SUMMARY =========== -->

<!-- ========== END METHOD SUMMARY =========== -->


        <pre class="sourceview"><span class="comment">/**
 * <span class="attrib">@fileoverview</span>
 * This script sets up the flyui environment.
 * <span class="attrib">@author</span> &lt;a href="http://purl.org/net/aliman"&gt;Alistair Miles&lt;/a&gt;
 * <span class="attrib">@version</span> $Revision:538 $ on $Date: 2008-08-14 10:36:17 +0100 (Thu, 14 Aug 2008) $ by $Author: aliman $
 * TODO license terms
 */</span>


<span class="reserved">if</span> (typeof flyui == <span class="literal">"undefined"</span> || !flyui) {
    <span class="comment">/**
     * <span class="attrib">@class</span>
	 * The flyui global namespace. If flyui is already defined, the
     * existing flyui will not be overwritten so that defined
     * namespaces are preserved.
     */</span>
	<span class="reserved">function</span> flyui() {};
}

<span class="comment">/**
 * Returns the namespace specified and creates it if it doesn't exist.
 * &lt;pre&gt;
 * flyui.namespace("property.package");
 * flyui.namespace("flyui.property.package");
 * &lt;/pre&gt;
 * Either of the above would create flyui.property, then
 * flyui.property.package
 *
 * Be careful when naming packages. Reserved words may work in some browsers
 * and not others. For instance, the following will fail in Safari:
 * &lt;pre&gt;
 * flyui.namespace("really.long.nested.namespace");
 * &lt;/pre&gt;
 * This fails because "long" is a future reserved word in ECMAScript
 *
 * <span class="attrib">@param</span>  {String*} arguments 1-n namespaces to create 
 * <span class="attrib">@return</span> {Object}  A reference to the last namespace object created
 */</span>
flyui.namespace = <span class="reserved">function</span>() {
    var a=arguments, o=null, i, j, d;
    <span class="reserved">for</span> (i=0; i&lt;a.length; i=i+1) {
        d=a[i].split(<span class="literal">"."</span>);
        o=flyui;

        <span class="comment">// flyui is implied, so it is ignored if it is included</span>
        <span class="reserved">for</span> (j=(d[0] == <span class="literal">"flyui"</span>) ? 1 : 0; j&lt;d.length; j=j+1) {
            o[d[j]]=o[d[j]] || {};
            o=o[d[j]];
        }
    }

    <span class="reserved">return</span> o;
};

flyui.log = <span class="reserved">function</span>(message, channel, context) {
    <span class="reserved">if</span> (typeof channel == <span class="literal">"undefined"</span>) {
        channel = <span class="literal">"info"</span>;
    }
    <span class="reserved">if</span> (typeof context != <span class="literal">"undefined"</span>) {
        message = context + <span class="literal">" :: "</span> +message;
    }
    YAHOO.log(message,channel);
};

flyui.info = <span class="reserved">function</span>(message, context) {
    var channel = <span class="literal">"info"</span>;
    flyui.log(message, channel, context);
};

flyui.debug = <span class="reserved">function</span>(message, context) {
    var channel = <span class="literal">"debug"</span>;
    flyui.log(message, channel, context);
};

flyui.err = <span class="reserved">function</span>(message, context) {
    var channel = <span class="literal">"error"</span>;
    flyui.log(message, channel, context);
};

flyui.chain = <span class="reserved">function</span>( glue, chained ) {
    <span class="reserved">return</span> <span class="reserved">function</span>(o) {
    	flyui.debug(<span class="literal">"in chained function, calling glue"</span>);
        var p = glue(o);
        flyui.debug(<span class="literal">"in chained function, calling next in chain"</span>);
        chained(p);
    }
};

<span class="comment">/**
 * <span class="attrib">@class</span>
 * Encapsulates an unexpected exception.
 * <span class="attrib">@constructor</span>
 * <span class="attrib">@param</span> {String} methodName the name of the method or function in which the cause exception was caught
 * <span class="attrib">@param</span> {Object} nested
 */</span>
flyui.UnexpectedException = <span class="reserved">function</span>( methodName, nested ) {
    <span class="reserved">this</span>.name = <span class="literal">"flyui.UnexpectedException"</span>;
    <span class="reserved">this</span>.nested = nested;
    <span class="reserved">this</span>.message = methodName+<span class="literal">" :: unexpected error"</span>;
    <span class="reserved">for</span> (var p in nested) {
        <span class="reserved">if</span> (p != <span class="literal">"message"</span>) {
            <span class="reserved">this</span>.message += <span class="literal">"\n      "</span>+p+<span class="literal">": "</span>+nested[p];
        }
    }
    <span class="reserved">if</span> (nested.message) {
        <span class="reserved">this</span>.message += <span class="literal">"\n..."</span>+nested.message;
    }
    flyui.debug(<span class="reserved">this</span>.message)
};

</pre>
	<hr>



<!-- ========== START OF NAVBAR ========== -->
<a name="navbar_top"><!-- --></a>
<table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td colspan=2 bgcolor="#EEEEFF" class="NavBarCell1">
<a name="navbar_top_firstrow"><!-- --></a>
<table border="0" cellpadding="0" cellspacing="3">
  <tr align="center" valign="top">
  
  
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="overview-summary.html"><font class="NavBarFont1"><b>Overview</b></font></a>&nbsp;</td>
  <td bgcolor="#FFFFFF" class="NavBarCell1Rev">	&nbsp;<font class="NavBarFont1Rev"><b>File</b></font>&nbsp;</td>
  

  <td bgcolor="#FFFFFF" class="NavBarCell1"> <font class="NavBarFont1">Class</font>&nbsp;</td>
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="overview-tree.html"><font class="NavBarFont1"><b>Tree</b></font></a>&nbsp;</td>
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="index-all.html"--><font class="NavBarFont1"><b>Index</b></font></a>&nbsp;</td>
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="help-doc.html"><font class="NavBarFont1"><b>Help</b></font></a>&nbsp;</td>
  </tr>
</table>
</td>
<td bgcolor="#EEEEFF" align="right" valign="top"><em>
<b>FlyUI</b></em>
</td>
</tr>

<tr>
<td bgcolor="white" class="NavBarCell2"><font size="-2">
&nbsp;PREV&nbsp;
&nbsp;NEXT</font></td>
<td bgcolor="white" class="NavBarCell2"><font size="-2">
  <a href="index.html" target="_top"><b>FRAMES</b></a>  &nbsp;
&nbsp;<a href="overview-summary.html" target="_top"><b>NO FRAMES</b></a>
&nbsp;&nbsp;
<script>
  <!--
  if(window==top) {
    document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
  }
  //-->
</script>
<noscript>
<a href="allclasses-noframe.html" target=""><b>All Classes</b></a>
</noscript>
</font></td>
</tr>
</table>
<!-- =========== END OF NAVBAR =========== -->

<hr>
<font size="-1">

</font>
<div class="jsdoc_ctime">Documentation generated by <a href="http://jsdoc.sourceforge.net/" target="_parent">JSDoc</a> on Tue Dec  9 11:08:18 2008</div>
</body>
</html>
